package cn.iocoder.yudao.module.system.controller.admin.mini.goodInfo.dis.controller.admin.disgoods.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 折扣商品 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class DisGoodsBaseVO {

    @Schema(description = "商品id", required = true, example = "22305")
    @NotNull(message = "商品id不能为空")
    private Integer goodsId;

    @Schema(description = "商品详情")
    private String goodsInfo;

    @Schema(description = "商品名称", example = "李四")
    private String goodsName;

    @Schema(description = "开始时间", required = true)
    @NotNull(message = "开始时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime startTime;

    @Schema(description = "结束时间", required = true)
    @NotNull(message = "结束时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime entTime;

    @Schema(description = "已售库存")
    private Integer soldNum;

    @Schema(description = "状态0未审核1上架2下架3已结束", example = "2")
    private Integer status;

}
